import Home from '@/views/home'
import Me from '@/views/me'
import Appreciate from '@/views/appreciate'
import QA from '@/views/qa'
import Forum from '@/views/forum'

import FooterBar from '@/components/footerBar'

const routes = [
    {
        path: '/',
        redirect: '/home'
      },
    {
      path: '/home',
      name: 'Home',
      components: {
        default: Home,
        footer: FooterBar
      },
      meta: {
        title:　'首页',
        icon: '&#xe62e;',
        isTabBar: true
      }
    },
    {
        path: '/appreciate',
        name: 'Appreciate',
        components: {
          default: Appreciate,
          footer: FooterBar
        },
        meta: {
          title:　'欣赏',
          icon: '&#xe610;',
          isTabBar: true
        }
    },
    {
        path: '/forum',
        name: 'Forum',
        components: {
          default: Forum,
          footer: FooterBar
        },
        meta: {
          title:　'论坛',
          icon: '&#xe63f;',
          isTabBar: true
        }
    },
    {
      path: '/qa',
      name: 'QA',
      components: {
        default: QA,
        footer: FooterBar
      },
      meta: {
        title: '问答',
        icon: '&#xe68e;',
        isTabBar: true
      }
  },
    {
      path: '/me',
      name: 'Me',
      components: {
        default: Me,
        footer: FooterBar
      },
      meta: {
        title:　'我的',
        icon: '&#xe724;',
        isTabBar: true
      }
    }
  ]

  export default routes